import { View } from '@tarojs/components'
import { useSelector } from 'react-redux';
import './index.scss'
/**
 * 提示组件
 */
export const Tips = () => {
  const isShowTips = useSelector((state: any) => state.isShowTips)
  const tipsText = useSelector((state: any) => state.tipsText)
  return <>
    { isShowTips ? <View className='nm-pages-index-tips-container'>
      <View>{ tipsText }</View>
    </View> : null }
  </>
}
export default Tips